﻿using System;

namespace Bilibili.Model.Common
{
    public sealed class DownloadInfo
    {
        public DownloadInfo(string displayName)
        {
            Success = -1;
            DisplayName = displayName;
        }
        public DownloadInfo(string displayName, DateTime startTime, long currentSize)
        {
            Success = 0;
            DisplayName = displayName;
            CurrentSize = (int)(currentSize / 1024 / 1024);
        }
        public DownloadInfo(string displayName, long totalSize, DateTime startTime)
        {
            Success = 1;
            DisplayName = displayName;
            TotalSize = (int)(totalSize / 1024 / 1024);
        }
        public int Success { get; set; }
        public int TotalSize { get; set; }
        public int CurrentSize { get; set; }
        public string DisplayName { get; set; }
    }
}